package testing;

import java.util.ArrayList;

import game.Battle;
import game.Character;
import game.GameBase;

import javax.swing.JFrame;

import GUI.Backgrounds;
import GUI.BattleView;
import GUI.Game;
import GUI.ImageStorage;

public class 	BattleViewTest {

	
	public static void main(String[] args) 
	{
		GameBase.get();
		GameBase.get();
		Game.get().setPlayer(GameBase.instCharacterByTag("player-char"));
		Game.get().initPlayer("smled-mapa1");
		Game.get().getPlayer().GlobalTurnPassed();
		
		Character c1 = GameBase.instCharacterByTag("badzo1");
		Character c2 = GameBase.instCharacterByTag("badzo2");
		Character c3 = GameBase.instCharacterByTag("badzo1");
		Character c4 = GameBase.instCharacterByTag("badzo1");
		
		ArrayList<game.Character> list = new ArrayList<Character>();
		list.add(c1);
		list.add(c2);
		list.add(c3);
//		list.add(c4);
		
		ArrayList<game.Character> nesto = new ArrayList<Character>();
		nesto.add(Game.get().getPlayer());
		
		Battle battle = new Battle(nesto, list);
		battle.setEnemyIntelligence(true);
		battle.prebaciPotez();
		BattleView view = new BattleView(battle);
		view.setBackground(Backgrounds.getByName(""));
		
		JFrame frame = new JFrame();
		frame.setSize(800,600);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.add(view);
		frame.setVisible(true);
	}

}
